package com.qf.service.impl;

import com.qf.dao.AdressDao;
import com.qf.pojo.adress;
import com.qf.service.AdressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZhaoHuiDong on 2020/9/14.
 */
@Service("adressService")
public class AdressServiceImpl implements AdressService {

    @Autowired(required = false)
    private AdressDao adressDao;
    @Override
    public List<adress> selectAll() {
        return adressDao.selectAll();
    }

    @Override
    public int delete(int id) {
        return adressDao.delete(id);
    }

    @Override
    public int add(adress adress) {
        return adressDao.add(adress);
    }

    @Override
    public int update(adress adress) {
       return adressDao.update(adress);
    }

    @Override
    public List<adress> selectOne() {
        return adressDao.selectOne();
    }
}
